/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.pbp.core.util;



/**
 *
 * @author Kim
 */
public class UserHelper {

    /*public static final User activeUser() {
        User user = null;

        try {
            Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
            if ((principal != null) && (principal instanceof User)) {
                user = (User) principal;
                Hibernate.initialize(user);
                Hibernate.initialize(user.getPerson());
            } else {
                throw new UserSessionExpired();
            }
        } catch (UserSessionExpired e) {
        } finally {
            if (user == null) {
                try {
                    throw new UserSessionExpired();
                } catch (UserSessionExpired e) {
                }
            }
        }

        return user;
    }*/
    
    public static final Integer activeUser() {
        return Integer.valueOf(1);
    }
    
}
